package com.core.bean

case class CategorySession(categoryId: String,
                           sessionId: String,
                           clickCount: Long) extends Ordered[CategorySession] { // 实现Ordered接口, 让对象具有比较的能力
  override def compare(that: CategorySession): Int = {
    if (this.clickCount <= that.clickCount) 1
    else -1
  }

}